import { Observer } from "mobx-vue"
import { Component, Vue } from "vue-property-decorator";
import PubArea from 'src/views/components/pubArea/pubArea.vue';
@Observer
@Component({
  props: {
    clear: {
      type: Boolean,
      default: false
    }
  },
  components: {
    PubArea
  }
})
export default class ComplexAdd extends Vue {
  isShowModel: boolean = false;
  formItem:any={
    name:"",
    contact:"",
    telephone:"",
    address:""
  }
  mounted() {
    let vm: any = this;
    vm.isShowModel = true;
  }
  //关闭
  close() {
    let vm: any = this;
    let xwindow: any = window
    vm.isShowModel = false;
    if (!vm.clear) {
      xwindow.clearBodyStyle()
    }
    vm.$emit('close')
  }
  //确定
  async confirm() {
    let vm: any = this;
    let areaParams=vm.$refs.area.formInline;
    let param={...vm.formItem,...areaParams}
    console.log(param)
  }
 }
 